{% extends 'layout.html' %}
{% block title %}
    <title>新增</title>
{% endblock %}


{% block content %}
    <div class="panel panel-default">
        <div class="panel-heading">新增员工</div>
        <div class="panel-body">
            <form action="{% url 'emp_add' %}" method="post" novalidate>
                {% for f in form %}
                    <div class="form-group">
                        <label>{{ f.label }}</label>
                        {{ f }}
                    </div>
                    <span style="color: red">{{ f.errors.0 }}</span>
                {% endfor %}
                <button type="submit" class="btn btn-primary">提交</button>
            </form>
        </div>
    </div>

{% endblock %}